reset

set title "060629_1024, U1=2.62V f1=1 Hz, t2=60us -> f2=16.7 kHz"
set xlabel "Channel #"
set ylabel "Counts"
set key top left
set mxtics 2
set ytics 1000

set term x11
set output

plot [0:16382] [0:10000]\
    "lin_060629_1024.dat" t "unbinned",\
    "bin2_060629_1024.dat" u ($0*2):($2/2) t "binsize 2",\
    "bin4_060629_1024.dat" u ($0*4):($2/4) t "binsize 4",\
    "bin8_060629_1024.dat" u ($0*8):($2/8) t "binsize 8",\
    "bin16_060629_1024.dat" u ($0*16):($2/16) t "binsize 16"\
 
set term postscript color
set output "linplot_060629_1024.ps"

replot

set term x11
set output
